<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JS初体验</title>
    <script src="js/my.js"></script>
    <!-- 内嵌式js -->
    <script>
        alert("内嵌式js使用");
    </script>

</head>

<body>

    <!-- 行内式js-->
    <input type="button" value="点击" onclick="alert('行内式js使用')">

</body>

</html>